//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.hafu.view;

import javax.swing.LayoutStyle;
import com.hafu.view.GYS.AddGYSFrm;
import com.hafu.view.GYS.ManageGYSFrm;
import com.hafu.view.RuKu.AddRuKuFrm;
import com.hafu.view.RuKu.QueryRuKuFrm;
import com.hafu.view.ShangPin.AddShangPinFrm;
import com.hafu.view.ShangPin.ManageShangPinFrm;
import com.hafu.view.inventory.InventoryFrm;
import com.hafu.view.kehu.AddKeHuFrm;
import com.hafu.view.kehu.ManageKeHuFrm;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.HashSet;
import java.util.Set;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JSeparator;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;

public class MainFrm extends JFrame {
    private static Set<JFrame> openFrames = new HashSet();
    private JButton button1;
    private JButton button2;
    private JButton button3;
    private JButton button4;
    private JButton button5;
    private JButton button6;
    private JButton button7;
    private JButton button8;
    private JButton button9;
    private JSeparator separator1;
    private JSeparator separator2;
    private JSeparator separator3;
    private JSeparator separator4;
    private JSeparator separator5;
    private JLabel label1;
    private JLabel label2;
    private JLabel label3;
    private JLabel label4;
    private JLabel label5;
    private JLabel label6;
    private JLabel label7;

    public MainFrm() {
        this.initComponents();
    }

    private void button1(ActionEvent e) {
        InventoryFrm kuCunFrm = new InventoryFrm();
        kuCunFrm.setVisible(true);
    }

    private void button2(ActionEvent e) {
        AddGYSFrm addGYSFrm = new AddGYSFrm();
        addGYSFrm.setVisible(true);
    }

    private void button3(ActionEvent e) {
        ManageGYSFrm manageGYSFrm = new ManageGYSFrm();
        manageGYSFrm.setVisible(true);
    }

    private void button4(ActionEvent e) {
        AddKeHuFrm addKeHuFrm = new AddKeHuFrm();
        addKeHuFrm.setVisible(true);
    }

    private void button5(ActionEvent e) {
        ManageKeHuFrm manageKeHuFrm = new ManageKeHuFrm();
        manageKeHuFrm.setVisible(true);
    }

    private void button6(ActionEvent e) {
        AddShangPinFrm addShangPinFrm = new AddShangPinFrm();
        addShangPinFrm.setVisible(true);
    }

    private void button7(ActionEvent e) {
        ManageShangPinFrm manageShangPinFrm = new ManageShangPinFrm();
        manageShangPinFrm.setVisible(true);
    }

    private void button8(ActionEvent e) {
        AddRuKuFrm addRuKuFrm = new AddRuKuFrm();
        addRuKuFrm.setVisible(true);
    }

    private void button9(ActionEvent e) {
        QueryRuKuFrm queryRuKuFrm = new QueryRuKuFrm();
        queryRuKuFrm.setVisible(true);
    }

    private void thisWindowClosing(WindowEvent e) {
        if (this.isVisible()) {
            System.exit(0);
        }

    }

    private void initComponents() {
        this.button1 = new JButton();
        this.button2 = new JButton();
        this.button3 = new JButton();
        this.button4 = new JButton();
        this.button5 = new JButton();
        this.button6 = new JButton();
        this.button7 = new JButton();
        this.button8 = new JButton();
        this.button9 = new JButton();
        this.separator1 = new JSeparator();
        this.separator2 = new JSeparator();
        this.separator3 = new JSeparator();
        this.separator4 = new JSeparator();
        this.separator5 = new JSeparator();
        this.label1 = new JLabel();
        this.label2 = new JLabel();
        this.label3 = new JLabel();
        this.label4 = new JLabel();
        this.label5 = new JLabel();
        this.label6 = new JLabel();
        this.label7 = new JLabel();
        this.setTitle("主界面");
        this.setResizable(false);
        this.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                MainFrm.this.thisWindowClosing(e);
            }
        });
        Container contentPane = this.getContentPane();
        this.button1.setText("查看库存");
        this.button1.addActionListener((e) -> {
            this.button1(e);
        });
        this.button2.setText("添加供应商");
        this.button2.addActionListener((e) -> {
            this.button2(e);
        });
        this.button3.setText("供应商管理");
        this.button3.addActionListener((e) -> {
            this.button3(e);
        });
        this.button4.setText("添加客户");
        this.button4.addActionListener((e) -> {
            this.button4(e);
        });
        this.button5.setText("客户管理");
        this.button5.addActionListener((e) -> {
            this.button5(e);
        });
        this.button6.setText("添加商品");
        this.button6.addActionListener((e) -> {
            this.button6(e);
        });
        this.button7.setText("商品管理");
        this.button7.addActionListener((e) -> {
            this.button7(e);
        });
        this.button8.setText("添加采购入库单");
        this.button8.addActionListener((e) -> {
            this.button8(e);
        });
        this.button9.setText("查询采购入库单");
        this.button9.addActionListener((e) -> {
            this.button9(e);
        });
        this.separator1.setForeground(new Color(3368703));
        this.separator1.setBackground(new Color(3355647));
        this.separator1.setPreferredSize(new Dimension(10, 50));
        this.separator2.setForeground(new Color(3368703));
        this.separator2.setBackground(new Color(3355647));
        this.separator2.setPreferredSize(new Dimension(10, 50));
        this.separator3.setForeground(new Color(3368703));
        this.separator3.setBackground(new Color(3355647));
        this.separator3.setPreferredSize(new Dimension(10, 50));
        this.separator4.setForeground(new Color(3368703));
        this.separator4.setBackground(new Color(3355647));
        this.separator4.setPreferredSize(new Dimension(10, 50));
        this.separator5.setForeground(new Color(3368703));
        this.separator5.setBackground(new Color(3355647));
        this.separator5.setPreferredSize(new Dimension(10, 50));
        this.label2.setText("海航源的作业");
        this.label3.setText("吴楠的作业");
        this.label4.setText("刘镓菖的作业");
        this.label5.setText("邓皓轩的作业");
        this.label6.setText("钟科的作业");
        this.label7.setText("王坤的作业");
        GroupLayout contentPaneLayout = new GroupLayout(contentPane);
        contentPane.setLayout(contentPaneLayout);
        contentPaneLayout.setHorizontalGroup(contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout.createSequentialGroup().addGroup(contentPaneLayout.createParallelGroup().addGroup(Alignment.TRAILING, contentPaneLayout.createSequentialGroup().addGap(40, 40, 40).addComponent(this.button1).addPreferredGap(ComponentPlacement.RELATED, -1, 32767).addComponent(this.label2, -2, 137, -2)).addGroup(Alignment.TRAILING, contentPaneLayout.createSequentialGroup().addGap(42, 42, 42).addComponent(this.button4).addGap(88, 88, 88).addComponent(this.button5).addPreferredGap(ComponentPlacement.RELATED, 431, 32767).addComponent(this.label3, -2, 137, -2)).addGroup(Alignment.TRAILING, contentPaneLayout.createSequentialGroup().addGap(42, 42, 42).addComponent(this.button6).addGap(86, 86, 86).addComponent(this.button7).addPreferredGap(ComponentPlacement.RELATED, 433, 32767).addComponent(this.label4, -2, 137, -2)).addGroup(Alignment.TRAILING, contentPaneLayout.createSequentialGroup().addGap(42, 42, 42).addComponent(this.button2).addGap(77, 77, 77).addComponent(this.button3).addPreferredGap(ComponentPlacement.RELATED, 418, 32767).addComponent(this.label5, -2, 137, -2)).addGroup(Alignment.TRAILING, contentPaneLayout.createSequentialGroup().addGap(43, 43, 43).addComponent(this.button9).addPreferredGap(ComponentPlacement.RELATED, 564, 32767).addComponent(this.label7, -2, 137, -2)).addGroup(contentPaneLayout.createSequentialGroup().addGroup(contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout.createSequentialGroup().addGap(222, 222, 222).addComponent(this.label1, -2, 158, -2)).addComponent(this.separator2, -2, 840, -2).addComponent(this.separator3, -2, 840, -2).addComponent(this.separator4, -2, 840, -2).addComponent(this.separator5, -2, 840, -2).addGroup(contentPaneLayout.createSequentialGroup().addContainerGap().addComponent(this.separator1, -2, 840, -2))).addGap(0, 16, 32767)).addGroup(Alignment.TRAILING, contentPaneLayout.createSequentialGroup().addGap(45, 45, 45).addComponent(this.button8).addPreferredGap(ComponentPlacement.RELATED, 562, 32767).addComponent(this.label6, -2, 137, -2))).addContainerGap()));
        contentPaneLayout.setVerticalGroup(contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout.createSequentialGroup().addGap(34, 34, 34).addGroup(contentPaneLayout.createParallelGroup(Alignment.BASELINE).addComponent(this.button1).addComponent(this.label1).addComponent(this.label2)).addGap(18, 18, 18).addComponent(this.separator1, -2, 19, -2).addGap(24, 24, 24).addGroup(contentPaneLayout.createParallelGroup(Alignment.BASELINE).addComponent(this.button4, -2, 30, -2).addComponent(this.label3).addComponent(this.button5)).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(this.separator5, -2, 19, -2).addGap(4, 4, 4).addGroup(contentPaneLayout.createParallelGroup(Alignment.BASELINE).addComponent(this.button6, -2, 30, -2).addComponent(this.label4).addComponent(this.button7)).addGap(19, 19, 19).addComponent(this.separator4, -2, 19, -2).addPreferredGap(ComponentPlacement.RELATED).addGroup(contentPaneLayout.createParallelGroup(Alignment.BASELINE).addComponent(this.button2, -2, 30, -2).addComponent(this.label5).addComponent(this.button3)).addPreferredGap(ComponentPlacement.RELATED, 30, 32767).addComponent(this.separator3, -2, 19, -2).addPreferredGap(ComponentPlacement.UNRELATED).addGroup(contentPaneLayout.createParallelGroup(Alignment.BASELINE).addComponent(this.label6).addComponent(this.button8, -2, 30, -2)).addGap(12, 12, 12).addComponent(this.separator2, -2, 19, -2).addPreferredGap(ComponentPlacement.UNRELATED).addGroup(contentPaneLayout.createParallelGroup(Alignment.BASELINE).addComponent(this.label7).addComponent(this.button9)).addGap(36, 36, 36)));
        this.pack();
        this.setLocationRelativeTo(this.getOwner());
    }
}


